using System;
using System.Collections.Generic;


namespace Madason.MetaModel.Maven
{
	/// <summary>
	/// Summary description for MavenEjbProject
	/// </summary>
	public class MavenEjbProject : MavenJarProject
	{
		public MavenEjbProject()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public override string Packaging
		{
			get
			{
				return "ejb";
			}
		}


		
		public override string Plugins
		{
			get
			{
				String plugins = FindValue("plugins");
				if (plugins == null) plugins = "";

				PluginsEjbProject genPlugins = new PluginsEjbProject();
				genPlugins.Project = this;
				System.IO.StringWriter writer = new System.IO.StringWriter();
				genPlugins.Render(writer);
				plugins = writer.ToString() + plugins;
				return plugins;
			}
		}
		 

		public override List<MavenDependency> MavenDependencies
		{
			get
			{
				List<MavenDependency> list = base.MavenDependencies;
				if (AutoAddDepdendencies)				
					list.Add(new MavenDependency("org.apache.geronimo.specs", "geronimo-j2ee_1.4_spec", "1.0"));				
				return list;
			}
		}

	}
}